package com.market.cart.server.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.market.cart.server.mapper.TDeliveryAddressMapper;
import com.market.cart.common.domain.TDeliveryAddress;
import com.market.cart.server.service.ITDeliveryAddressService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author market
 * @date 2024-02-26
 */
@Service
public class TDeliveryAddressServiceImpl implements ITDeliveryAddressService
{
    @Autowired
    private TDeliveryAddressMapper tDeliveryAddressMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param addressId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public TDeliveryAddress selectTDeliveryAddressByAddressId(Long addressId)
    {
        return tDeliveryAddressMapper.selectTDeliveryAddressByAddressId(addressId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param tDeliveryAddress 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TDeliveryAddress> selectTDeliveryAddressList(TDeliveryAddress tDeliveryAddress)
    {
        return tDeliveryAddressMapper.selectTDeliveryAddressList(tDeliveryAddress);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param tDeliveryAddress 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTDeliveryAddress(TDeliveryAddress tDeliveryAddress)
    {
        return tDeliveryAddressMapper.insertTDeliveryAddress(tDeliveryAddress);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param tDeliveryAddress 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTDeliveryAddress(TDeliveryAddress tDeliveryAddress)
    {
        return tDeliveryAddressMapper.updateTDeliveryAddress(tDeliveryAddress);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param addressIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTDeliveryAddressByAddressIds(Long[] addressIds)
    {
        return tDeliveryAddressMapper.deleteTDeliveryAddressByAddressIds(addressIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param addressId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTDeliveryAddressByAddressId(Long addressId)
    {
        return tDeliveryAddressMapper.deleteTDeliveryAddressByAddressId(addressId);
    }
}
